
CROSS_PREFIX=aarch64-linux-gnu-

target := dead_loop_start

env_set: 
	source /CORE/CAD/bashrc/dms.bashrc && make build

build:
	# $(CROSS_PREFIX)gcc -c start.s -o start.o
	# $(CROSS_PREFIX)ld -Tlink.lds start.o -o start
	$(CROSS_PREFIX)gcc -Ttext 0x0 -nostdlib start.s -o $(target).elf
	$(CROSS_PREFIX)objdump -d $(target).elf > $(target).asm
	$(CROSS_PREFIX)objcopy -O binary $(target).elf $(target).bin

clean:
	rm *.o $(target)* -f